package com.xiumu.securitydemo;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.core.env.Environment;

@Slf4j
@MapperScan("com.xiumu.securitydemo.mapper")
@SpringBootApplication
public class SecuritydemoApplication {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(SecuritydemoApplication.class, args);
        Environment environment = context.getEnvironment();
        String serverPort = environment.getProperty("server.port");
        log.info("Securitydemo started at http://localhost:" + serverPort);
    }

}
